<html>
<head>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <span class="PageHeader">Command: RunJobFile</span>
    <br /><br /><br />
    <span class="SectionHeader">Description:</span> Runs a JobFile on the Symitar System. By default JobFiles are run in synchronous mode which means that the program will
    wait for the JobFile to finish.
    
    <br /><br /><hr /><br />
    
    <span class="SectionHeader">Parameters:</span>
    <br /><br />
    <b>JobFileName:</b> (Required) Name of the JobFile to run. 
    <br /><br />
    <b>JobFileRunTimeoutInSec:</b> (Optional) A numeric value (in seconds) that will determine how long the program waits for the JobFile to finish before ending with an error. 
    Default value is specified in config file. Command line value (if specified) will override the config file value. Value is ignored if JobFileRunAsync is true or if JobFileScheduleDate or JobFileScheduleTime
    is specified.
    <br /><br />
    <b>JobFileBatchQueue:</b> (Optional) A numeric value (0-3) that will determine the batch queue to run the JobFile. Use 99 to find the first available empty queue (0 will be used if 99 is specified and all queues are busy). 
    Default value is specified in config file. Command line value (if specified) will override the config file value.
    <br /><br />
    <b>JobFileRunAsync:</b> (Optional) true or false that will determine if the JobFile is run in synchronous or asynchronous mode. By default JobFiles are run in synchronous 
    mode which means that the program will wait for the JobFile to finish. If this value is true then the program will return success without waiting for the JobFile to finish 
    running. Value is ignored if JobFileScheduleDate or JobFileScheduleTime is specified.
    <br /><br />
    <b>JobFileScheduleDate</b> (Optional) Date to Schedule the JobFile. Format MM/DD/YY or MM/DD/YYYY.  If JobFileScheduleTime is specifed without specifying JobFileScheduleDate, JobFileScheduleDate
    will be assumed today's (system) date.
    <br /><br />
    <b>JobFileScheduleTime</b> (Optional) Time to Schedule the JobFile. Format 0000 - 2359 (Military Time). If JobFileScheduleDate is specifed without specifying JobFileScheduleTime, JobFileScheduleTime
    will be assumed 0000 (midnight).
    <br /><br />
    <b>JobFileExpectedSystemDate</b> (Optional) Format MM/DD/YY or MM/DD/YYYY.  Specify this value if it's different from current System Date. Parameter is ignored if JobFileScheduleDate is not specified. 
    <br /><br />
    <b>JobFileExpectedPreviousSystemDate </b> (Optional) Format MM/DD/YY or MM/DD/YYYY.  Specify this value if it's different from yesterday's System Date. Parameter is ignored if JobFileScheduleDate is not specified. 
    <br /><br />
    <b>JobFileParam:</b> (Optional) One or more Parameters for JobFile in a specifc format. Any number of parameters can be entered. Parameters must in the same order as they
    appear in the JobFile. The prompts are case senstive Ex: JobFileParam="{Start Date}{01/01/10},{File ID}{C}"<br />
    TIP: Do not include the end punctuation marks such as : and ? in the prompts.    
    <br /><br />
    <a href="Global Parameters.htm">Global Parameters</a> can be overridden if needed by specifying them in the command line arguments.
    
    <br /><br /><hr /><br />
    
    <span class="SectionHeader">Usage:</span>
    <br /><br />
    <div class="CodeDiv">SymAutomate.exe Command=RunJobFile JobFileName=MY.JOBFILENAME</div>
    The above will run a jobfile called MY.JOBFILENAME in the default queue and wait the default number of seconds for the jobfile to finish running.
    <br /><br />
    <div class="CodeDiv">SymAutomate.exe Command=RunJobFile JobFileName=MY.JOBFILENAME JobFileRunTimeoutInSec=120 JobFileBatchQueue=1</div>
    The above will run a jobfile called MY.JOBFILENAME in the queue 1 and wait 120 seconds for the jobfile to finish running.
    <br /><br />
    <div class="CodeDiv">SymAutomate.exe Command=RunJobFile JobFileName=MY.JOBFILENAME JobFileRunAsync=true</div>
    The above will run a jobfile called MY.JOBFILENAME in the default queue and will exit with a success without waiting for the jobfile to finish running.
    <br /><br />
    <div class="CodeDiv">SymAutomate.exe Command=RunJobFile JobFileName=MY.JOBFILENAME JobFileParam="{Start Date}{01/01/10},{File ID}{C}"</div>
    The above will run a jobfile called MY.JOBFILENAME in the default queue and wait the default number of seconds for the jobfile to finish running. It will
    enter '01/01/10' when it sees the prompt for 'Start Date' and will enter 'C' when it sees the prompt for 'File ID'.
    <br /><br />
    <div class="CodeDiv">SymAutomate.exe Command=RunJobFile JobFileName=MY.JOBFILENAME JobFileScheduleDate=11/24/2010 JobFileScheduleTime=1500</div>
    The above will schedule a jobfile called MY.JOBFILENAME in the default queue to run on 11/24/2010 at 3:00 PM.
    <br /><br />
</body>
</html>
